﻿using System;
using fastCSharp;

namespace diantou.dataModel
{
    /// <summary>
    /// 企业用户信息
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false)]
    [fastCSharp.code.cSharp.webView.clientType(Name = "diantou.user")]
    [fastCSharp.code.cSharp.sqlModel(LogTcpCallService = "ExamDataLog")]
    public partial class enterprise
    {
        /// <summary>
        /// 用户标识
        /// </summary>
        [fastCSharp.code.cSharp.webView.outputAjax]
        public int Id;
        /// <summary>
        /// 账户有效期
        /// </summary>
        public DateTime EnterpriseValidity = pub.MinTime;
        /// <summary>
        /// 独占题库账户有效期
        /// </summary>
        public DateTime EnterprisePrivateValidity = pub.MinTime;
        /// <summary>
        /// 企业用户最后访问公共单选题时间
        /// </summary>
        [fastCSharp.emit.dataSerialize.member(IsIgnoreCurrent = true)]
        public DateTime VisitExamRadioTime = fastCSharp.date.NowSecond;
        /// <summary>
        /// 企业用户最后访问公共多选题时间
        /// </summary>
        [fastCSharp.emit.dataSerialize.member(IsIgnoreCurrent = true)]
        public DateTime VisitExamMultipleChoiceTime = fastCSharp.date.NowSecond;
        /// <summary>
        /// 企业用户最后访问公共编程题时间
        /// </summary>
        [fastCSharp.emit.dataSerialize.member(IsIgnoreCurrent = true)]
        public DateTime VisitExamProblemTime = fastCSharp.date.NowSecond;
        /// <summary>
        /// 企业用户最后访问独占编程题时间
        /// </summary>
        [fastCSharp.emit.dataSerialize.member(IsIgnoreCurrent = true)]
        public DateTime VisitExamPrivateProblemTime = fastCSharp.date.NowSecond;

        /// <summary>
        /// 企业账户余额(单位：分)
        /// </summary>
        //[fastCSharp.emit.jsonSerialize.member(IsIgnoreCurrent = true)]
        [fastCSharp.emit.dataMember(IsIgnoreCurrent = true, IsSqlStream = true)]
        public int EnterpriseBalance;
        ///// <summary>
        ///// 考试独占编程题数量
        ///// </summary>
        //[fastCSharp.emit.dataMember(IsIgnoreCurrent = true, IsSqlStream = true)]
        //public int ExamProblemCount;
    }
}
